package com.qingzhu.service;

import com.qingzhu.pojo.ShopCart;
import com.qingzhu.pojo.ShopOption;

import java.util.List;

public interface ShopOptionService {

    // 创建购物选项
    public ShopOption createdOption(int shopNum, int itemId);
    // 添加新的购物选项
    public ShopCart addShopSption(ShopCart shopCart, int shopNum, int itemId);
    // 移除购物选项
    public ShopCart removeShopSption(ShopCart shopCart, int itemId);
    // 批量移除购物选项
    public ShopCart removeShopSption(ShopCart shopCart, List<Integer> itemIds);
    // 修改或修正购物选项的相关属性值(包括效验选中产品的库存情况)
    public ShopCart updateShopSption(ShopCart shopCart);
}
